<template>
    <!-- 站内信 -->
    <entity-manager
        :fields="fields"
        :queryFields="queryFields"
        apiPrefix="/sys/inbox-msg"
        :tree="false"
        ref="entityManagerRef"
        :params="params"
        operationsWidth="140px"
    >
    </entity-manager>
</template>

<script setup>
import { ref } from "vue";

const fields = [
    { label: "标题", prop: "title", max: 255, required: true, width: "400px" },
    { label: "内容", prop: "content", max: 255, required: true, type: "textarea", rows: 10 },
    { label: "接收用户", prop: "receiverId", max: 64, width: "120px" },
    { label: "阅读时间", prop: "readTime", needNew: false, width: "160px" },
    // { label: "附加数据", prop: "metadata", max: 512, needNew: false },
    { label: "添加时间", prop: "createTime", width: "160px", system: true },
    { label: "修改时间", prop: "updateTime", width: "160px", system: true },
];
const queryFields = [];
const entityManagerRef = ref();
const params = ref({});

function reload() {
    entityManagerRef.value.reload();
}
</script>
